import requests
import json
import sys  
from PyQt5.QtWidgets import QApplication, QMainWindow
import Ui_start
import about
API_KEY = "SO8K3o2U9qm2WVqH6w7qOHrO"
SECRET_KEY = "Jjo4bypthpWi6j36Gp8IRaHexl7d19t2"


class startwindow(QMainWindow):
    def __init__(self, parent=None):  
        super(startwindow, self).__init__(parent)  
        self.ui =Ui_start.Ui_MainWindow() 
        
        self.ui.setupUi(self)
        self.ui.pushButton.clicked.connect(self.start_chat)
        self.ui.pushButton_2.clicked.connect(self.about)
        self.ui.pushButton.setText("开始测试")
        self.ui.pushButton_2.setText("使用说明")
        

    def start_chat(self):
        self.close()
    def about(self):  
        self.aboutWin = about.aboutwindow()  
        self.aboutWin.setWindowTitle("帮助")
        self.aboutWin.show() 
 

if __name__ == '__main__':
    app = QApplication(sys.argv)  
    mainWin = startwindow()  
    mainWin.setWindowTitle("MBTI测试")
    mainWin.show() 
    sys.exit(app.exec_())